# function Get-UseExistingDatabase {
#     [CmdletBinding()]
#     Param(
#         [Parameter(Mandatory = $true)][int]$ExistingDatabaseCount,
#         [Parameter(Mandatory = $false)][ExtendedBool]$UseExisting,
#         [Parameter(Mandatory = $false)][bool]$ConfirmAll = $false
#     )

#     # Allow user to use existing value or to update it.
#     #if ((Confirm-SingleValue -Description 'Use existing Azure SQL Database' -Value $UseExisting -ConfirmAll $ConfirmAll) -eq $true) { return $UseExisting }
#     if ($ConfirmAll) { # Only allow creating new database for now.
#         return 'False'
#     }

#     if ($ExistingDatabaseCount -gt 0) {
#         $params = @{
#             Question = 'LS Insight needs an Azure SQL Database. Which option do you choose:'
#             Options = @(
#                 'Create a new database'#,
#                 #"Use an existing database ($ExistingDatabaseCount)" # Only allow creating new database for now.
#             )
#         }
#         $answer = Open-LSQuestion @params

#         # Return 'True' or 'False'.
#         return ($answer -imatch 'Use*').ToString()
#     } else {
#         # Cannot use existing database if none exists.
#         return 'False'
#     }
# }